/**
 * 
 */
package com.imonsoft.common.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 
 * @author LiQianHui
 * @date 2013-04-17
 * @version 2013
 */
public class IbatisUtil {

	public static void addCriterion(List<Map<String, Object>> criteriaWithSingleValue, String condition, Object value) {
		if (criteriaWithSingleValue == null) {
			throw new RuntimeException("criteriaWithSingleValue cannot be null");
		}
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("condition", condition);
		map.put("value", value);
		criteriaWithSingleValue.add(map);
	}
}
